<script type="text/ng-template" id="materialadd_dialog">
	<div class="modal-header">
        <h4 class="modal-title">添加物资</h4>
    </div>
    <div class="modal-body">
		<div class="row">
			<table class="table order-table-detail">
		        <tbody>
					<tr>
		                <td class="nob_t">
		                    <div class="col-xs-6"><span class="color666666" style="width:80px">供应商编号：</span><span ng-bind="material.VendorCode" style="width=100px"></span></div>
		                    <div class="col-xs-6"><span class="color666666" style="width:80px">供应商名称：</span><span ng-bind="material.VendorName"></span></div>
		                </td>
		            </tr>
		           <tr>
		                <td>
		                    <div class="col-xs-6">
                                	<span class="color666666" style="float:left;width:80px" > 货品编号：</span>
                                <div class="col-xs-8">
                                    <div class="input-group"><input type="text" class="col-xs-2 form-control" placeholder="货品编号" ng-model="material.MaterialCode"/>
									<div class="btn input-group-addon btn-sm" ng-click="showMaterialCodeSelectDlg()"><i class="glyphicon glyphicon-search"></i></div></div>
                                </div>
		                	</div>
		                    <div class="col-xs-6">
                                <span class="color666666" style="float:left;width:80px" > 货品名称：</span>
                                <span ng-bind="material.MaterialName"></span>
		                	</div>
		                </td>
		            </tr>
 					<tr>
		                <td>
		                    <div class="col-xs-6">
                                <span class="color666666" style="float:left;width:80px" >规格型号：</span>
                                <span ng-bind="material.SpeciModel"></span>
		                	</div>
		                    <div class="col-xs-6">
                                <span class="color666666" style="float:left;width:80px" > 单位：</span>
                                <span ng-bind="material.UnitName"></span>
		                	</div>
		                </td>
		            </tr>
					<tr>
					  <td class="no-border-b">
						<div class="col-xs-6">
							<span class="color666666" style="float:left;width:80px" > 供应商类型：</span>
		                	<div class="col-xs-7">
        						<select class=" form-control" ng-model="material.VendorTypeCode">
        							<option ng-selected="''==matrial.VendorTypeCode" value="">供应商类型</options>
        							<option value="{{vendorType.VendorTypeCode}}" ng-selected="vendorType.VendorTypeCode==material.VendorTypeCode" ng-repeat="vendorType in vendorTypes">{{vendorType.VendorTypeName}}</options>
        						</select>
        					</div>
						</div>
					  </td>
		            </tr>
				</tbody>
			</table>
		</div>
    </div>
        <div class="modal-footer">
            <div class="col-xs-12">
                <button class="btn btn-save btn-warning" ng-disabled="bSubmitDisabled" ng-click="InsertMaterial()">确定</button>
 				<button class="btn btn-save" ng-disabled="bSubmitDisabled" ng-click="closeDialog()">取消</button>
            </div>
        </div>
</script>